import request from '@/utils/request'


// 查询用户列表
export function searchList(query) {
  return request({
    url: '/credit/selectPatient',//https://ndwdt.com/prod-api/credit/selectPatient
    method: 'get',
    params: query
  })
}

// 新增用户
export function addUser(data) {
  return request({
    url: '/credit/savePatient',
    method: 'post',
    data: data
  })
}
// 删除用户
export function delUser(query) {
  return request({
    url: '/credit/deletePatient',
    method: 'get',
    params: query
  })
}

// 修改用户
export function updateUser(data) {
  return request({
    url: '/credit/savePatient',
    method: 'post',
    data: data
  })
}

// 导出模板
export function exportUser(query) {
  return request({
    url: '/credit/importTemplate',
    method: 'get',
    params: query
  })
}

